import javax.swing.JOptionPane;

public class Ogave_8 {
	public static void main(String[] args){
		String password ="";
		do{
			password =JOptionPane.showInputDialog("Type Password");
					if(password.length() < 5 || password.length() > 9){
						System.out.println("The password have to be between 5 and 8 char");
						
					}
		}
		
		while(password.length() < 5 || password.length() > 9);
		System.out.println("Vailde, Have a nice day");
	}
}
